home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / itoken.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.8 KB  |  50 lines

  1. /* Copyright (C) 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: itoken.h,v 1.2 2000/09/19 19:00:46 lpd Exp $ */
  20. /* Interface to exported procedures in ztoken.c */
  21.  
  22. #ifndef itoken_INCLUDED
  23. #  define itoken_INCLUDED
  24.  
  25. /*
  26.  * Continue after handling a procedure stream refill or other callout
  27.  * while reading tokens in the interpreter.
  28.  */
  29. int ztokenexec_continue(P1(i_ctx_t *i_ctx_p));
  30.  
  31. /*
  32.  * Handle a scan_Comment or scan_DSC_Comment return from scan_token.
  33.  */
  34. #ifndef scanner_state_DEFINED
  35. #  define scanner_state_DEFINED
  36. typedef struct scanner_state_s scanner_state;
  37. #endif
  38. int ztoken_handle_comment(P8(i_ctx_t *i_ctx_p, const ref *fop,
  39.                  scanner_state *sstate, const ref *ptoken,
  40.                  int scan_code, bool save, bool push_file,
  41.                  op_proc_t cont));
  42.  
  43. /*
  44.  * Update the cached scanner_options in the context state after doing a
  45.  * setuserparams.  (We might move this procedure somewhere else eventually.)
  46.  */
  47. int ztoken_scanner_options(P2(const ref *upref, int old_options));
  48.  
  49. #endif /* itoken_INCLUDED */
  50.